package com.vtech.spring.config;

import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @author houzhiwei
 * @date 2018/5/19 19:31
 */
@Configuration
public class WebConfiguration {

    /**
     * <pre/>
     * 配置 FastJson
     * FastJsonHttpMessageConverter 支持 4.2 以下的版本;
     * FastJsonHttpMessageConverter4 支持 4.2 以上的版本
     *
     * @return
     */
   /* @Bean
    public HttpMessageConverters fastjsonHttpMessageConverter() {
        FastJsonHttpMessageConverter4 jsonConverter = new FastJsonHttpMessageConverter4();
        FastJsonConfig fastJsonConfig = new FastJsonConfig();
        fastJsonConfig.setSerializerFeatures(SerializerFeature.PrettyFormat);
        jsonConverter.setFastJsonConfig(fastJsonConfig);
        HttpMessageConverter<?> converter = jsonConverter;
        return new HttpMessageConverters(converter);
    }*/
}
